package com.qfedu.test;

import com.qfedu.dao.exercisesDao;
import com.qfedu.entity.QuestionCountAndeType;
import com.qfedu.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class testw {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");

        exercisesDao exercisesDao =  applicationContext.getBean(exercisesDao.class);
        List<QuestionCountAndeType> exercisesTypeAndCount = exercisesDao.getExercisesTypeAndCount();
        System.out.println(exercisesTypeAndCount);
    }
}
